package com.ruoyi.job.task;

import com.ruoyi.common.core.utils.DateUtils;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.api.patent.RemotePatentService;
import org.springframework.stereotype.Component;
import com.ruoyi.common.core.utils.StringUtils;

import javax.annotation.Resource;

/**
 * 定时任务模拟官方
 * @author ruoyi
 */
@Component("ipmsTask")
public class IPMSTask
{
    @Resource
    private RemotePatentService patentService;

    /*调用feign模拟官方审核*/
    public void officialTick(String from){
        AjaxResult caseOver = patentService.officialResult();
        System.out.println("调用feign模拟官方审核");
    }

    public void ryMultipleParams(String s, Boolean b, Long l, Double d, Integer i)
    {
        System.out.println(StringUtils.format("执行多参方法： 字符串类型{}，布尔类型{}，长整型{}，浮点型{}，整形{}", s, b, l, d, i));
    }

    public void ryParams(String params)
    {
        System.out.println("执行有参方法：" + params);
    }

    public void ryNoParams()
    {
        System.out.println("执行无参方法");
    }
}
